export const getArticleList=(queryObj)=>{
  return uni.$http.get('/article/getArticles',queryObj)
}

export const getArticleDetail=(aid)=>{
  return uni.$http.get('/article/getArticle',{
    aid
  })
}

export const pubMes=(formData)=>{
  return uni.$http.post('/article/publishArticle3',
    formData
  )
}

export const getComments=(queryObj)=>{
  return uni.$http.get('/article/getComments',
    queryObj
  )
}

export const saveDraft=(title,content,files,module)=>{
  return uni.$http.post('/article/saveDraft',{
    title,
    content,
    files,
    module
  })
}

export const likeFirstComment=(firstCid)=>{
  return uni.$http.get('/article/likeFirstComment/' + firstCid)
}

export const likeSecondComment=(secondCid)=>{
  return uni.$http.get('/article/likeSecondComment/' + secondCid)
}

export const likeArticle=(aid)=>{
  return uni.$http.get('/article/likeArticle/' + aid)
}

export const deleteFirstComment=(firstCid)=>{
  return uni.$http.get('/article/deleteFirstComment/' + firstCid)
}

export const deleteSecondComment=(secondCid)=>{
  return uni.$http.get('/article/deleteSecondComment/' + secondCid)
}

export const reportArticle=(aid)=>{
  return uni.$http.post('/article/reportArticle?aid='+aid)
}